﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MyFavorite.aspx.cs" Inherits="WebApp.Space.AccountInfo.MyFavorite" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../../css/css2.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <div class="hy_right1">
            <div class="hy_right2">
                <div class="hy_r2p">
                    <div class="r2_p1">
                        我的收藏
                    </div>
                </div>
                <div class="hy_r2p1">
                    <asp:ListView ID="lvProduct" runat="server" 
                        onpagepropertieschanged="lvProduct_PagePropertiesChanged" 
                        onitemcommand="lvProduct_ItemCommand">
                        <LayoutTemplate>
                            <div class="hy_bt2">
                                <ul>
                                    <li>商品名称</li>
                                    <li>价格</li>
                                    <li>操作</li>
                                </ul>
                            </div>
                            <div class="hy_list">
                                <ul>
                                    <asp:PlaceHolder ID="itemPlaceHolder" runat="server"></asp:PlaceHolder>
                                </ul>
                            </div>
                        </LayoutTemplate>
                        <ItemTemplate>
                            <li>
                                <div class="hy_item11">
                                    <a id="A3" href='<%# "~/Product/ProductInfor_rh.aspx?PID=" + Eval("UID") %>' runat="server">
                                        <%# Eval("Name") %></a></div>
                                <div class="hy_item21">
                                    <%# Cosmetic.WebGeneric.Price(Eval("eprice"))%></div>
                                <div class="hy_item71">
                                    <a id="A4" href='<%# "~/Product/ProductInfor_rh.aspx?PID=" + Eval("UID") %>' target="_blank"
                                        runat="server">产品详情</a>
                                    <asp:LinkButton ID="LinkButton1" runat="server" OnClientClick="return confirm('确定要删除?')" CommandName="OnDelete" CommandArgument='<%# Eval("ProductId") %>' >删除</asp:LinkButton>   
                                        </div>
                            </li>
                        </ItemTemplate>
                    </asp:ListView>
                </div>
                <div class="digg">
                    <asp:DataPager ID="DataPager1" runat="server" PagedControlID="lvProduct" PageSize="12">
                        <Fields>
                            <asp:NextPreviousPagerField ButtonType="Link" ShowFirstPageButton="False" ShowNextPageButton="False"
                                ShowPreviousPageButton="True" PreviousPageText="上一页" />
                            <asp:NumericPagerField ButtonType="Link" />
                            <asp:NextPreviousPagerField ButtonType="Link" ShowLastPageButton="False" ShowNextPageButton="True"
                                ShowPreviousPageButton="False" NextPageText="下一页" />
                        </Fields>
                    </asp:DataPager>
                </div>
            </div>
        </div>
    </div>
    </form>
</body>
</html>
